// 拖入css在这里加个路径
import './assets/css/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

//引入elementPlus组件库和css样式
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import App from './App.vue'
import router from './router'
// 引入所有的icon图标组件
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App)

// 将引入的图标组件全局注册在vue实例上
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

//将elementPlus挂载到vue的实例上
app.use(ElementPlus)
app.use(createPinia())
app.use(router)

app.mount('#app')
